<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>薪酬添加</title>
</head>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
      content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>

<link rel="stylesheet" type="text/css" th:href="@{/layui/dist/css/layui.css}"/>
<link rel="stylesheet" type="text/css" th:href="@{/css/selbbs.css}"/>
<!-- 引入layui模板-->
<link rel="stylesheet" type="text/css" th:href="@{../lib/layui/css/layui.css}"/>
<!--引入自己的样式-->
<link rel="stylesheet" th:href="@{../css/salarycss.css}">
<script type="text/javascript" th:src="@{/js/jquery-3.6.0.js}"></script>
<script type="text/javascript" th:src="@{/js/addsal.js}"></script>
<style media="screen" type="text/css">
    .box{
        text-align: center;
        margin-top: 10px;
        margin: 0px auto;
    }


</style>
<body class="box" onload="sum()">
<div>
    <table  width="1000px" class="tab1 layui-table" >
        <tr>
            <td width="10%">薪酬标准编号:</td>
            <td><input type="text" name="payStandardCode" class="payStandardCode layui-input reName1" th:value="${code}" readonly></td>
            <td>薪酬标准名称:</td>
            <td><input type="text" onblur="selname()" name="nameOfSalary" class="nameOfSalary layui-input reName1"  ></td>

            <td>薪酬总额:</td>
            <td><span class="sum"></span></td>
        </tr>
        <tr>
            <td>制定人:</td>
            <td><input type="text" name="developPeople" class="developPeople layui-input reName1" ></td>
            <td>登记人:</td>
            <td><input type="text" name="registrant" class="registrant layui-input reName1"></td>
        </tr>
    </table>
    <table border="1px" width="1000px" class='tab2 layui-table show'>
        <tr>
            <td>序号</td>
            <td>薪酬项目名称</td>
            <td>金额(元)</td>
        </tr>
        <tr>
            <td>1</td>
            <td>基本工资</td>
            <td><input type="text" name="regularWage" onblur="sum()" class="regularWage layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>2</td>
            <td>绩效奖金</td>
            <td><input type="text" name="performanceBonus" onblur="sum()" class="performanceBonus layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>3</td>
            <td>交通补助</td>
            <td><input type="text" name="transportation" onblur="sum()" class="transportation layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>4</td>
            <td>通讯补助</td>
            <td><input type="text" name="phoneAllowance" onblur="sum()" class="phoneAllowance layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>5</td>
            <td>餐补</td>
            <td><input type="text" name="mealSubsidy" onblur="sum()" class="mealSubsidy layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>6</td>
            <td>住房补助</td>
            <td><input type="text" name="housingAllowance" onblur="sum()" class="housingAllowance layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>7</td>
            <td>出差补助</td>
            <td><input type="text" name="travelAllowance" onblur="sum()" class="travelAllowance layui-input reName1" value="0"></td>
        </tr>
        <tr>
            <td>8</td>
            <td>加班补助</td>
            <td><input type="text" name="overtimeAllowance" onblur="sum()" class="overtimeAllowance layui-input reName1" value="0"></td>
        </tr>

    </table>
        <button type="submit" class="layui-btn layui-btn-normal" onclick="add(1)">保存</button>&nbsp;
        <button type="submit" class="layui-btn layui-btn-normal" onclick="add(2)">提交</button>&nbsp;
        <input type="button" class="layui-btn layui-btn-normal" onclick="location.href='/sal/sel'" value="返回">
</div>
</body>
</html>